package com.tiantian.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.tiantian.mapper.BaseUserInfoMapper;
import com.tiantian.pojo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin")
public class HelloController {

    @Autowired
    private BaseUserInfoMapper baseUserInfoMapper;


    @GetMapping("/test")
    @SaIgnore
    public Result testAdmin(){
        return Result.ok(baseUserInfoMapper.selectByUid(1));
    }

}
